//C11:11.19:quit_chk.c
#include <stdio.h>
#include <string.h>
#define SIZE  81
#define LIM  100
#define STOP "quit"

int main(void)
{
    char input[LIM][SIZE];
    int ct = 0;

    printf("Enter up to %d lines (type quit to quit): \n", LIM);
    while (ct < LIM && gets(input[ct]) != NULL && 
            strcmp(input[ct], STOP) != 0)
    {
        ct++;
    }

    printf("%d strings entered\n", ct);
}
